<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <script src="js/jquery.js"></script>
    <script type="text/javascript">
        $(function(){
            $.ajax({
                type:'post',
                url:"http://127.0.0.1:8080/book_information",
                dataType:'json',
                success:function(data){
                    alert("success");

                    for(var i=0;i<data.length;i++){

                        $("#table").append("<tr><td>"+data[i].book_id+"</td><td>"+data[i].book_name+"</td><td>"+data[i].book_autho+"</td><td>"+data[i].book_classes+"</td><td>"+data[i].book_price+"</td><td>"+data[i].book_surplus+"</td></tr>")
                    }
                }


            })


        });
    </script>
</head>

<body>

<table border="=1" width="90%" id="table">
    <tr>
        <td>书号</td>
        <td>书名</td>
        <td>作者</td>
        <td>类别</td>
        <td>价格</td>
        <td>库存量</td>
    </tr>
</table>
</body>
</html>
